#include "SDLTask.h"

using namespace sdl;

SDLTask::SDLTask(void)
{
	listener = 0;
	progress = 0;
	_isDone = false;
}

SDLTask::~SDLTask(void)
{
}

int SDLTask::getProgress(void)
{
	return progress;
}

bool SDLTask::isDone(void)
{
	return _isDone;
}

void SDLTask::addPropertyChangeListener(PropertyChangeListener* listener)
{
	this->listener = listener;
}

void SDLTask::notifyListener(void)
{
	if (listener != 0)
	{
		listener->update(this);
	}
}
